package com.project.service.Impl;

import com.project.bean.SpeakBean;
import com.project.dao.ISpeakDao;
import com.project.service.ISpeakService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class
SpeakServiceImpl implements ISpeakService {
    @Autowired
    private ISpeakDao dao;
    @Override
    public List<SpeakBean>  addSpeak(SpeakBean sp) {
        dao.addSpeak(sp);
        return dao.findAll(sp.getIn().getId());
    }

}
